<h2>Sub products of product name: <?=check_post('name')?></h2>
<br />
<table class="tblColor">
	<tr>
        <th>No</th>
        <th>Sub product Name</th>
    </tr>    
<?php
	$i = 1;
	foreach($row as $col)
	{
		echo "
			<tr>
				<td>".$i."</d>
				<td>".$col -> sub_name."</td>
			</tr>
		";
		$i++;
	}
?>
</table>